$('#main_content').html("<%= j(render 'data') %>");

$('title').text("`<%= @table.name %>` - Rails DB");

$('.sidebar_table').removeClass('selected');
$('.sidebar_table_<%= @table.name %>').addClass('selected');

stickyFooter();

$(document).foundation('reflow');

$(document).scrollTop(0);

set_browser_url('<%= url_for(params_to_hash(params)) %>');